package com.heng.service.Impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heng.dao.entity.coupon.CouponTaskFailEntity;
import com.heng.dao.mapper.CouponTaskFailMapper;
import com.heng.service.CouponTaskFailService;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class CouponTaskFailServiceImpl extends ServiceImpl<CouponTaskFailMapper, CouponTaskFailEntity> implements CouponTaskFailService {

    @Override
    public List<CouponTaskFailEntity> getByBatchId(Long batchId) {
        return baseMapper.selectByBatchId(batchId);
    }

    @Override
    public IPage<CouponTaskFailEntity> pageQuery(Integer pageNum, Integer pageSize) {
        return baseMapper.selectPage(new Page<>(pageNum, pageSize), null);
    }
}